Optimal. Leaf size=88 \[ \frac {a x \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{a+b x^n}+\frac {b^2 x^{1+n} \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{(1+n) \left (a b+b^2 x^n\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {1357}
\begin {gather*} \frac {b^2 x^{n+1} \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{(n+1) \left (a b+b^2 x^n\right )}+\frac {a x \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{a+b x^n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1357
Rubi steps
\begin {align*} \int \sqrt {a^2+2 a b x^n+b^2 x^{2 n}} \, dx &=\frac {\sqrt {a^2+2 a b x^n+b^2 x^{2 n}} \int \left (2 a b+2 b^2 x^n\right ) \, dx}{2 a b+2 b^2 x^n}\\ &=\frac {a x \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{a+b x^n}+\frac {b^2 x^{1+n} \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}{(1+n) \left (a b+b^2 x^n\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 39, normalized size = 0.44 \begin {gather*} \frac {x \sqrt {\left (a+b x^n\right )^2} \left (a+a n+b x^n\right )}{(1+n) \left (a+b x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 56, normalized size = 0.64
method | result | size |
risch | \(\frac {\sqrt {\left (a +b \,x^{n}\right )^{2}}\, a x}{a +b \,x^{n}}+\frac {\sqrt {\left (a +b \,x^{n}\right )^{2}}\, b x \,x^{n}}{\left (a +b \,x^{n}\right ) \left (1+n \right )}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 19, normalized size = 0.22 \begin {gather*} \frac {a {\left (n + 1\right )} x + b x x^{n}}{n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 20, normalized size = 0.23 \begin {gather*} \frac {b x x^{n} + {\left (a n + a\right )} x}{n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a^{2} + 2 a b x^{n} + b^{2} x^{2 n}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.67, size = 25, normalized size = 0.28 \begin {gather*} {\left (a x + \frac {b x^{n + 1}}{n + 1}\right )} \mathrm {sgn}\left (b x^{n} + a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {a^2+b^2\,x^{2\,n}+2\,a\,b\,x^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________